package com.baylor.server.base.repository;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.baylor.server.base.entity.OauthClientDetails;

/**
 * @author zj
 */
public interface OauthRepository  extends
PagingAndSortingRepository<OauthClientDetails, Long>,
JpaSpecificationExecutor<OauthClientDetails> {
	@Query("from OauthClientDetails rr where  rr.clientId = ?1")
    public OauthClientDetails findOauthClientDetails(String clientId);
}